package com.mobilesalon.model;

public class ServiceBean {
	private final long serviceId;
	private final long price;
	private final String serviceName;
	
	
	public ServiceBean(long serviceId) {
		super();
		this.serviceId = serviceId;
		this.price = 0;
		this.serviceName = null;
	}
	
	public ServiceBean(long serviceId, long price, String serviceName) {
		super();
		this.serviceId = serviceId;
		this.price = price;
		this.serviceName = serviceName;
	}
	
	
	public ServiceBean(long price, String serviceName) {
		super();
		this.serviceId = 0;
		this.price = price;
		this.serviceName = serviceName;
	}


	public long getServiceId() {
		return serviceId;
	}
	public long getPrice() {
		return price;
	}
	public String getServiceName() {
		return serviceName;
	}


	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + (int) (serviceId ^ (serviceId >>> 32));
		return result;
	}


	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		ServiceBean other = (ServiceBean) obj;
		if (serviceId != other.serviceId)
			return false;
		return true;
	}
	
	
	
	
	
	
}
